window.addEvent('domready', function() {
    $$(".mooeditable").each(function(el, index){
	    el.mooEditable({cleanup:true, xhtml:true, 'actions':'bold italic underline strikethrough | justifyleft justifyright justifycenter justifyfull | insertunorderedlist insertorderedlist indent outdent | undo redo | createlink unlink, | urlimage | toggleview'});
    });
                
    // adding text to all input.text fields
    $$("input[type=text],input[type=password]").each(function(el){ el.addClass('text') });
	
});